package pharao.client.views.game.landkarte.ort.exam;

import pharao.client.views.game.landkarte.ort.exam.events.CheckExamenStatusEvent;
import pharao.client.views.game.landkarte.ort.exam.events.ShowExamViewEvent;
import hmvc4gwt.client.event.IHmvcEvent;
import hmvc4gwt.framework.client.controller.GuiController;
import hmvc4gwt.framework.client.events.AddViewEvent;

public class ExamController extends GuiController {

	protected void initImpl() {
		register(ShowExamViewEvent.class, this);
	}

	public void handleEventImpl(IHmvcEvent event) {
		if (event instanceof ShowExamViewEvent) {
			fireEventLocal(new CheckExamenStatusEvent());
			fireEventUp(new AddViewEvent(getView()));
		}
	}

	public Class getClassOfObject() {
		return ExamController.class;
	}

}
